package com.yh.dp.principle.lod;

/**
 * @ClassName Agent
 * @Description 经纪人
 * @Author 0715-YuHao
 * @Date 2021/1/3 17:20
 */
public class Agent {
    private Star star;
    private Fans fans;
    private Company company;

    public void setStar(Star star) {
        this.star = star;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public void meeting() {
        System.out.println(this.fans.getName() + "与明星" + this.star.getName() + "见面了。");
    }

    public void business() {
        System.out.println(this.company.getName() + "与明星" + this.star.getName() + "商谈合作。");
    }
}
